package com.zablert.mainactivity.chat

import android.view.View
import com.zablert.mainactivity.R
import zyc.zalbert.extensions.logd
import zyc.zalbert.extensions.toast
import zyc.zalbert.view.recycleview.CoreItemProvider
import zyc.zalbert.view.recycleview.holder.CoreViewHolder

class RightChatItemProvider : CoreItemProvider<ChatParam>() {

    init {
        addClickViewIds(R.id.cl_root)
    }

    override fun convert(holder: CoreViewHolder, item: ChatParam, position: Int) {
        holder.setText(R.id.tv_content, item.msg)
    }

    override fun convert(holder: CoreViewHolder, item: ChatParam, payloads: List<Any>) {

    }

    override fun onClick(helper: CoreViewHolder, view: View, position: Int) {

    }

    override val itemViewType: Int
        get() = ChatItemType.MSG_NORMAL_RIGHT
    override val layoutId: Int
        get() = R.layout.item_msg_right_normal

}
